﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Library
{
	class GameSettings
	{
		static GraphicsDeviceManager _graphics;
		public GameSettings(GraphicsDeviceManager graphics)
		{
			_graphics = graphics;
		}
		public static void SetResolution(int width, int height, bool fullScreen)
		{
			_graphics.PreferredBackBufferWidth = width;
			_graphics.PreferredBackBufferHeight = height;
			_graphics.IsFullScreen = fullScreen;
			_graphics.ApplyChanges();
		}
		public static Vector2 GetResolution()
		{
			return new Vector2(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight);
		}
	}
}
